<%@ Page Language="C#" %>

<%@ Register TagPrefix="bloget" Namespace="BlueOnionSoftware.Bloget" Assembly="Bloget" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
  protected override void OnLoad(EventArgs e)
  {
    if (Bloget.Mode != Mode.Blog && Bloget.Mode != Mode.Post && Bloget.Mode != Mode.Index)
    {
      right.Visible = false;
      navibar.Visible = false;
      content.Style.Add(HtmlTextWriterStyle.Margin, "0");
    }
    base.OnLoad(e);
  }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title>Sumansa Clone</title>
  <link rel="stylesheet" type="text/css" href="sumansa.css" media="screen" />
</head>
<body>
  <form id="form1" runat="server">
    <div id="container">
      <div id="header">
        <bloget:BlogetTitle ID="BlogetTitle" runat="server" DataContext="~/App_Data/SampleBlog/Blog.xml" />
      </div>
      <div id="menu">
      </div>
      <div id="grandwrapper">
        <div id="wrapper">
        </div>
        <div runat="server" id="navibar">
          <div class="links">
            <h2>Categories</h2>
            <bloget:BlogetCategory runat="server" ID="blogetCategory" DataContext="~/App_Data/SampleBlog/Blog.xml" />
            <h2>Blog Roll</h2>
            <bloget:BlogetBlogRoll runat="server" ID="blogroll" DataContext="~/App_Data/SampleBlog/Blog.xml" Uri="http://www.bloglines.com/export?id=blueonionsoftware" />
            <h2>Meta</h2>
            <p>
              <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="?m=login" Text="login (Hint:Bloget)" /><br />
              <a href="?m=rss" type="text/xml">RSS</a></p>
          </div>
        </div>
        <div runat="server" id="right">
          <div class="links">
            <h2>Search</h2>
            <bloget:BlogetSearch ID="search" runat="server" DataContext="~/App_Data/SampleBlog/Blog.xml" />
            <h2>Recent Posts</h2>
            <bloget:BlogetRecentPosts runat="server" ID="blogetRecent" DataContext="~/App_Data/SampleBlog/Blog.xml" />
            <h2>Archives</h2>
            <bloget:BlogetArchive runat="server" ID="archives" DataContext="~/App_Data/SampleBlog/Blog.xml" Length="10" />
          </div>
        </div>
        <div runat="server" id="content">
          <bloget:BlogetBlog ID="Bloget" runat="server" DataContext="~/App_Data/SampleBlog/Blog.xml" />
        </div>
        <div id="wrapper_bottom">
        </div>
      </div>
      <div id="footer">
        <p>Bloget <i>&quot;One Binary, One File, One Bog&quot;</i></p>
      </div>
    </div>
  </form>
</body>
</html>
